define(['jquery','swiper','utils'],function ($,swiper,utils) {
  function Index() {

  }

  Index.prototype = {
    init () {
      this.newSwiper()
      utils.setBannerHeight()
    },

    //初始化 swiper 轮播图
    newSwiper () {
      new swiper ('.swiper-container', {
        direction: 'horizontal',
        loop: true,
        autoplay: true,
        pagination: {
          el: '.swiper-pagination',
          clickable :true,
        }
      });
    },

  }

  return new Index();
})